# 0 "head.S"
# 0 "<built-in>"
# 0 "<command-line>"

# 1 "/usr/include/stdc-predef.h" 1 3 4

# 17 "/usr/include/stdc-predef.h" 3 4



















# 45 "/usr/include/stdc-predef.h" 3 4

# 55 "/usr/include/stdc-predef.h" 3 4









# 1 "<command-line>" 2
# 1 "head.S"













.text


# 1 "/home/ubuntu/workspace/Linux-0.99-vscode_debug/include/linux/segment.h" 1









# 17 "head.S" 2

.globl startup_32

startup_32:
	cld
	cli
	movl $0x18,%eax
	mov %ax,%ds
	mov %ax,%es
	mov %ax,%fs
	mov %ax,%gs
	lss stack_start,%esp
	xorl %eax,%eax
1:	incl %eax		# check that A20 really IS enabled
	movl %eax,0x000000	# loop forever if it isn't
	cmpl %eax,0x100000
	je 1b





	pushl $0
	popfl



	xorl %eax,%eax
	movl $_edata,%edi
	movl $_end,%ecx
	subl %edi,%ecx
	cld
	rep
	stosb






	call decompress_kernel
	ljmp $0x10, $0x100000
